home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / palette / dibview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.3 KB  |  50 lines

  1. // dibview.h : interface of the CDibView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CDibView : public CScrollView
  14. {
  15. protected: // create from serialization only
  16.     CDibView();
  17.     DECLARE_DYNCREATE(CDibView)
  18.  
  19. // Attributes
  20. public:
  21.     CDibDoc* GetDocument()
  22.         {
  23.             ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDibDoc)));
  24.             return (CDibDoc*) m_pDocument;
  25.         }
  26.  
  27. // Operations
  28. public:
  29.     void ShowPicture(BOOL bUsePalette);
  30.  
  31. // Implementation
  32. public:
  33.     virtual ~CDibView();
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.  
  36.     virtual void OnInitialUpdate();
  37.     virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  38.  
  39.  
  40. // Generated message map functions
  41. protected:
  42.     BOOL m_bUsePalette;
  43.     //{{AFX_MSG(CDibView)
  44.     afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);  // user message
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50.